﻿using FluentValidation.Attributes;
using Nop.Admin.Validators.Customers;
using Nop.Web.Framework;
using Nop.Web.Framework.Mvc;
using System.Web.Mvc;

namespace Nop.Admin.Models.Customers
{
	[Validator(typeof(CustomerRoleValidator))]
	public partial class CustomerRoleModel : BaseNopEntityModel
	{
		[NopResourceDisplayName("名称", true)]
		[AllowHtml]
		public string Name { get; set; }

		[NopResourceDisplayName("启用", true)]
		public bool Active { get; set; }

		[NopResourceDisplayName("系统角色", true)]
		public bool IsSystemRole { get; set; }

		[NopResourceDisplayName("系统名称", true)]
		public string SystemName { get; set; }

		[NopResourceDisplayName("Admin.Customers.CustomerRoles.Fields.EnablePasswordLifetime")]
		public bool EnablePasswordLifetime { get; set; }

		/// <summary>
		/// 排序（数字越大，等级越高）
		/// </summary>
		[NopResourceDisplayName("排序", true, "角色的显示顺序")]
		public int DisplayOrder { get; set; }

	}
}